const fs = require("fs");

fs.readFile("./src/snippets/javascript.json", function(err, data){
    console.log(err);
    const object = JSON.parse(data)
    const list = []
    for (const key in object) {
        if (Object.hasOwnProperty.call(object, key)) {
            list.push(key)
        }
    }
    console.log(list);
});